<?php
/**
 * 采购备货明细
 * (model)
 */
namespace App\Models\Purchase;

use App\Models\Stocking\StockingApplyDetail;
use Illuminate\Database\Eloquent\Model;
class PurchaseStockingDetail extends Model
{
    protected $table = 'purchase_stocking_detail';

    protected $guarded = [];

    /**
     * 备货申请明细
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function stocking_apply_detail(){
        return $this->belongsTo(StockingApplyDetail::class,'apply_detail_id');
    }
}
